package com.huanletao.spring.scheduling;

import java.util.Date;
import java.util.concurrent.TimeUnit;

/**
 * <p>
 * </p>
 * package: com.huanletao.spring.scheduling
 * description:
 * className: Job
 * author:  踏雪无痕
 * copyright: Copyright (c) 2022/8/23 11:56
 * since: 1.0.0
 */
public class Job implements Runnable {
    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName() + ":定时任务执行" + new Date());
        try {
            TimeUnit.SECONDS.sleep(5);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
    }
}
